//author:kakake
class tshisinterfaceController {
    public data = {
        dbConn: TSLobsterAPI.DbHelper.setdbconn('81.68.197.71', 'MiniHIS_Stable', 'sa', 'Lobster@123'),
        WorkId: 1,
        PatTypeID: 100,//病人类型：全自费
        ChargeEmpID: 1322,//收费员ID
        ChargeEmpName: '机器人',//收费员名称 
        BalanceType: 1,//结算方式,0一次结算多张票号,1一次结算一张票号
    }
    public registerservice: registerService;
    public cancelregisterservice: cancelregisterService;
    public balanceservice: balanceService;
    public reportresultservice: reportResultService;

    public dao: tshisinterfaceDao;

    constructor(workid: number) {
        this.data.WorkId = workid;
        this.dao = new tshisinterfaceDao(workid, this.data.dbConn, this.data.ChargeEmpID, this.data.ChargeEmpName);
        this.registerservice = new registerService(workid, this.data.dbConn, this.data.PatTypeID, this.data.ChargeEmpID, this.data.ChargeEmpName);
        this.cancelregisterservice = new cancelregisterService(workid, this.data.dbConn, this.data.PatTypeID, this.data.ChargeEmpID, this.data.ChargeEmpName);
        this.balanceservice = new balanceService(workid, this.data.dbConn, this.data.PatTypeID, this.data.ChargeEmpID, this.data.ChargeEmpName, this.data.BalanceType);
        this.reportresultservice = new reportResultService(workid, this.data.dbConn);
    }

    /**
     * 获取科室分类和科室
     * 返回格式：
     * {"layer":[{"LayerId":3,"PId":0,"Name":"全部","WorkId":1},{"LayerId":2077,"PId":3,"Name":"互联网门诊","WorkId":1}],"dept":[{"DeptId":1067,"Layer":3,"Name":"产科门诊","Pym":"ckmz","Wbm":"utuy","Szm":"                    ","Code":"1001","DelFlag":0,"SortOrder":0,"Memo":"","WorkId":1,"ID":70,"DeptID":1067,"WorkID":1,"DeptType":0,"Principal":"帅凌宏","Telephone":"13984357402","Member_Num":0,"Bed_Num":0,"OutUsed":1,"InUsed":0,"PrtWardUsed":0,"PharmacyUsed":0,"ExamineUsed":0,"DrugUsed":0,"MaterialsUsed":0,"DeptAddress":"门诊二楼","IsOperation":0},{"DeptId":1068,"Layer":3,"Name":"儿科门诊","Pym":"ekmz","Wbm":"qtuy","Szm":"                    ","Code":"1002","DelFlag":0,"SortOrder":0,"Memo":"","WorkId":1,"ID":71,"DeptID":1068,"WorkID":1,"DeptType":0,"Principal":"罗详丁","Telephone":"18111912196","Member_Num":0,"Bed_Num":0,"OutUsed":1,"InUsed":0,"PrtWardUsed":0,"PharmacyUsed":0,"ExamineUsed":0,"DrugUsed":0,"MaterialsUsed":0,"DeptAddress":"门诊二楼","IsOperation":0},{"DeptId":1069,"Layer":3,"Name":"妇科门诊","Pym":"jsmz","Wbm":"ytuy","Szm":"                    ","Code":"1003","DelFlag":0,"SortOrder":0,"Memo":"","WorkId":1,"ID":72,"DeptID":1069,"WorkID":1,"DeptType":0,"Principal":"孟晓静","Telephone":"13985552070","Member_Num":0,"Bed_Num":0,"OutUsed":1,"InUsed":0,"PrtWardUsed":0,"PharmacyUsed":0,"ExamineUsed":0,"DrugUsed":0,"MaterialsUsed":0,"DeptAddress":"门诊二楼","IsOperation":0},{"DeptId":1070,"Layer":3,"Name":"儿童保健部","Pym":"bjk","Wbm":"wwt","Szm":"                    ","Code":"1005","DelFlag":0,"SortOrder":0,"Memo":"","WorkId":1,"ID":73,"DeptID":1070,"WorkID":1,"DeptType":0,"Principal":"罗详丁","Telephone":"18111912196","Member_Num":0,"Bed_Num":0,"OutUsed":1,"InUsed":0,"PrtWardUsed":0,"PharmacyUsed":0,"ExamineUsed":0,"DrugUsed":0,"MaterialsUsed":0,"DeptAddress":"门诊二楼","IsOperation":0}]}
     *  
     * */
    getdept() {
        return this.dao.getdept();
    }
    /**
     * 预约排班
     * 明细只有上午、下午、晚上
    [{
        "DeptId": 1067,
        "DoctId": 245,
        "GoodNum": 0,
        "RegNum": 0,
        "DeptName": "产科门诊",
        "DocName": "林葛",
        "scheduleStatus": 0,
        "ItemA": [{
            "RegId": 12093,
            "DeptId": 1067,
            "DoctId": 245,
            "DeptName": "产科门诊",
            "DocName": "林葛",
            "RegDate": "2022-12-08",
            "Week": 4,
            "RegFee": 0.01,
            "TimeType": 1,
            "AllCount": 10,
            "HaveCount": 10,
            "scheduleStatus": 1
        }, {
            "RegId": 12094,
            "DeptId": 1067,
            "DoctId": 245,
            "DeptName": "产科门诊",
            "DocName": "林葛",
            "RegDate": "2022-12-08",
            "Week": 4,
            "RegFee": 0.01,
            "TimeType": 2,
            "AllCount": 20,
            "HaveCount": 20,
            "scheduleStatus": 1
        }]
    }]
    */
    getdocOrderSched(_deptId: any, _empId?: any) {
        return this.dao.getdocOrderSched(_deptId, _empId);
    }

    /**
     * 排班时间段，比如精确到分钟
     * 一个医生上午看50个病人，那么就可以建50个时段
     * 时段没有配置的话，默认上午、下午、晚上三个时段
     * [{
            "Timeid": 2,
            "RegId": 12098,
            "DoctId": 245,
            "DeptId": 1067,
            "DeptName": "产科门诊",
            "DocName": "林葛",
            "RegDate": "2022-12-18",
            "IsHave": 1,
            "HaveCount": 10,
            "AllCount": 10,
            "IsAll": 1,
            "Week": 7,
            "RegFee": 0.01,
            "TimeType": 2,
            "StartTime": "14:00",
            "EndTime": "18:00"
        }, {
            "Timeid": 3,
            "RegId": 12099,
            "DoctId": 245,
            "DeptId": 1067,
            "DeptName": "产科门诊",
            "DocName": "林葛",
            "RegDate": "2022-12-18",
            "IsHave": 1,
            "HaveCount": 5,
            "AllCount": 5,
            "IsAll": 1,
            "Week": 7,
            "RegFee": 0.01,
            "TimeType": 3,
            "StartTime": "18:00",
            "EndTime": "23:00"
        }, {
            "Timeid": 1,
            "RegId": 12102,
            "DoctId": 245,
            "DeptId": 1067,
            "DeptName": "产科门诊",
            "DocName": "林葛",
            "RegDate": "2022-12-13",
            "IsHave": 1,
            "HaveCount": 3,
            "AllCount": 5,
            "IsAll": 1,
            "Week": 2,
            "RegFee": 0.01,
            "TimeType": 1,
            "StartTime": "8:30",
            "EndTime": "12:00"
        }]
     */
    scheduleTimeRange(_regid) {
        return this.dao.scheduleTimeRange(_regid);
    }

    /**
     * 挂号
     * { result: true, Regno: 123456, Location: '' }
     */
    register(param: any) {
        return this.registerservice.hisregister(param.DeptId, param.DoctId, param.Regid, param.RegDate, param.Timeid, param.CardType, param.CardNum,
            param.TranSerNo, param.PayTime, param.PayMode, param.TotalRegFee);
    }

    //取消挂号
    cancelregister(param: any) {
        if (!param.Regno || param.Regno == "") {
            throw "参数：Regno不能为空";
        }
        return this.cancelregisterservice.cancelregister(param.Regno, param.RegDate);
    }

    /**
     * 待缴费处方，处方3天有效，只查询三天内的处方
     * [{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148203_1","PatListId":28485,"PresHeadID":148203,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1067,"ExecDeptName":"产科门诊","PresDate":"2022-12-13 15:30:16","FeeTime":"2022-12-13","ItemName":"普通门诊挂号费","FeeType":3,"FeeTypeName":3,"UnitPrice":0.01,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"腹部彩色多普勒超声常规检查","FeeType":4,"FeeTypeName":4,"UnitPrice":75,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"阴道B超","FeeType":4,"FeeTypeName":4,"UnitPrice":124.25,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"胃肠道彩色多普勒超声常规检查","FeeType":4,"FeeTypeName":4,"UnitPrice":60,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"泌尿系彩色多普勒超声常规检查","FeeType":4,"FeeTypeName":4,"UnitPrice":75,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"妇科彩色多普勒超声常规检查","FeeType":4,"FeeTypeName":4,"UnitPrice":60,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"浅表器官彩色多普勒超声检查","FeeType":4,"FeeTypeName":4,"UnitPrice":60,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"门静脉系彩色多普勒超声","FeeType":4,"FeeTypeName":4,"UnitPrice":60,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"双肾及肾血管彩色多普勒超声","FeeType":4,"FeeTypeName":4,"UnitPrice":65,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"腔内彩色多普勒超声检查","FeeType":4,"FeeTypeName":4,"UnitPrice":110,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28485,"PatName":"测试","Repno":"148205_16125","PatListId":28485,"PresHeadID":148205,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 16:47:45","FeeTime":"2022-12-13","ItemName":"临床操作的彩色多普勒超声引导","FeeType":4,"FeeTypeName":4,"UnitPrice":100,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0},{"CardType":1,"CardNum":"100000","Regno":28484,"PatName":"测试","Repno":"148206_16126","PatListId":28484,"PresHeadID":148206,"PresDoctorID":100,"PresDoctName":"超级用户","PresDeptID":1067,"PresDeptName":"产科门诊","ExecDeptId":1081,"ExecDeptName":"影像科","PresDate":"2022-12-13 22:08:20","FeeTime":"2022-12-13","ItemName":"腹部彩色多普勒超声常规检查","FeeType":4,"FeeTypeName":4,"UnitPrice":75,"Quantity":1,"Specs":"","Usage":null,"Frequency":null,"Unit":"","InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0}]
     */
    getPatPresUnPay(cardType: number, cardNum: string) {
        return this.balanceservice.getPatPresUnPay(cardType, cardNum);
    }

    /**
     * 获取处方明细
     * {"Items":[{"PatName":"测试","CardNum":"100000","Repno":"148197_1","PresDate":"2022-12-11","ItemName":"普通门诊挂号费","Specs":"","Usage":null,"Frequency":null,"Quantity":1,"Unit":"","UnitPrice":0.01,"Fee":0.01,"Regno":28482,"DoctName":"超级用户","ExecDeptName":"产科门诊","DeptName":"产科门诊","PresType":3}],"CardNum":"100000","PatName":"测试","Feeno":"148197_1","DoctName":"超级用户","DeptName":"产科门诊","ExecDeptName":"产科门诊","PresType":3,"PresDate":"2022-12-11","Fee":"0.01"}
     */
    getPatPresDetail(repno: any) {
        return this.balanceservice.getPresDetail(repno);
    }

    /**
     * 已缴费处方
     * {"Items":[{"Repno":"148197_1","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":3,"PersonFee":0.01,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28482,"Memo":"普通门诊挂号费"},{"Repno":"148197_2","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-12","FeeTypeName":3,"PersonFee":31.86,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28482,"Memo":"艾条,长期留置针"},{"Repno":"148197_3","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-12","FeeTypeName":3,"PersonFee":16.74,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28482,"Memo":"艾条"},{"Repno":"148197_4","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-12","FeeTypeName":3,"PersonFee":16.74,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28482,"Memo":"艾条"},{"Repno":"148198_1","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":3,"PersonFee":0.01,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28483,"Memo":"普通门诊挂号费"},{"Repno":"148198_2","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":3,"PersonFee":7.2,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28483,"Memo":"小换药"},{"Repno":"148198_3","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":3,"PersonFee":70.85,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28483,"Memo":"臭氧连接头,真空采血管（红头）"},{"Repno":"148198_4","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":3,"PersonFee":211.38,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1067,"ExecDeptName":"产科门诊","Regno":28483,"Memo":"臭氧连接头,真空采血管（红头）,真空采血管（绿头）,真空采血管（蓝头）,血凝杯"},{"Repno":"148199_1","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":2,"PersonFee":20,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":2109,"ExecDeptName":"中药房","Regno":28483,"Memo":"败酱草"},{"Repno":"148200_16123","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":4,"PersonFee":164.25,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1081,"ExecDeptName":"影像科","Regno":28483,"Memo":"腹部彩色多普勒超声常规检查,引产术前B超"},{"Repno":"148201_16124","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-11","FeeTypeName":4,"PersonFee":31.5,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1080,"ExecDeptName":"检验科","Regno":28483,"Memo":"血常规五分类"},{"Repno":"148202_1","DeptName":"产科门诊","DoctName":"超级用户","FeeTime":"2022-12-12","FeeTypeName":1,"PersonFee":4.29,"InsurFee":0,"InsurTypeName":0,"InfsurType":0,"CanUseInsurance":0,"InsuAdminfo":0,"ExecDeptID":1075,"ExecDeptName":"西药房","Regno":28482,"Memo":"阿莫西林胶囊"}]}
     */
    getPatPresFinished(cardType: number, cardNum: string, startDate: string, endDate: string) {
        return this.balanceservice.getPatPresFinished(cardType, cardNum, startDate, endDate);
    }
    //缴费处方
    balancePatPresDetail(param: any) {
        return this.balanceservice.balance(param.Repno, param.TranserNo, param.PayTime, param.PayMode, param.payAmt)
    }
    /**
     * 获取检验结果
     * {"Items":[{"ApplyDetailID":151882,"ExamItemID":500291,"ExamItemName":"血常规五分类","ApplyNo":149447,"ApplyTime":"2022-12-11 16:10:52","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-11 16:10:52","PatListID":28483,"CardNO":"100000","ApplyStatus":1,"Results":[{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"凝血酶原时间","RefValue":"9—14","Value":"2","Unit":"S","Status":"↓","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"活化部分凝血酶时间","RefValue":"24.0—38","Value":"33","Unit":"S","Status":"","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"凝血酶时间","RefValue":"9.0—16.0","Value":"1","Unit":"S","Status":"↓","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"纤维蛋白原","RefValue":"2—4","Value":"331","Unit":"g/L","Status":"↑","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"国际标准化比值(PTINR)","RefValue":"0.76—1.15","Value":"33","Unit":"","Status":"↑","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"D-二聚体","RefValue":"<1.0","Value":"22","Unit":"ug/ml","Status":"↑","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"活动度","RefValue":"80.00—150.00","Value":"1","Unit":"%","Status":"↓","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"},{"ExamItemID":500291,"ExamItemName":"血常规五分类","ItemName":"PTR","RefValue":"0.82—1.15","Value":"44","Unit":"","Status":"↑","Dangerous":0,"CheckTime":"2017-09-06 15:50:57","CheckDoc":"管理员"}]}]}
     */
    getLisResultByCardNum(cardType: number, cardNum: string, startDate: string, endDate: string) {
        return this.reportresultservice.getLisResultByCardNum(cardType, cardNum, startDate, endDate);
    }
    /**
     * 获取检查结果
     * {"Items":[{"ApplyDetailID":151902,"ExamItemID":500265,"ExamItemName":"腹部彩色多普勒超声常规检查","ApplyNo":149450,"ApplyTime":"2022-12-13 22:08:20","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 22:08:20","PatListID":28484,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151892,"ExamItemID":500265,"ExamItemName":"腹部彩色多普勒超声常规检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151893,"ExamItemID":500267,"ExamItemName":"阴道B超","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151894,"ExamItemID":500269,"ExamItemName":"胃肠道彩色多普勒超声常规检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151895,"ExamItemID":500270,"ExamItemName":"泌尿系彩色多普勒超声常规检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151896,"ExamItemID":500271,"ExamItemName":"妇科彩色多普勒超声常规检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151897,"ExamItemID":500272,"ExamItemName":"浅表器官彩色多普勒超声检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151898,"ExamItemID":500273,"ExamItemName":"门静脉系彩色多普勒超声","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151899,"ExamItemID":500274,"ExamItemName":"双肾及肾血管彩色多普勒超声","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151900,"ExamItemID":500275,"ExamItemName":"腔内彩色多普勒超声检查","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151901,"ExamItemID":500276,"ExamItemName":"临床操作的彩色多普勒超声引导","ApplyNo":149449,"ApplyTime":"2022-12-13 16:47:45","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-13 16:47:45","PatListID":28485,"CardNO":"100000","ApplyStatus":0,"Results":[]},{"ApplyDetailID":151880,"ExamItemID":500265,"ExamItemName":"腹部彩色多普勒超声常规检查","ApplyNo":149446,"ApplyTime":"2022-12-11 16:10:47","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-11 16:10:47","PatListID":28483,"CardNO":"100000","ApplyStatus":1,"Results":[]},{"ApplyDetailID":151881,"ExamItemID":500286,"ExamItemName":"引产术前B超","ApplyNo":149446,"ApplyTime":"2022-12-11 16:10:47","ApplyDoc":"超级用户","ApplyDept":"产科门诊","InspectionTime":"2022-12-11 16:10:47","PatListID":28483,"CardNO":"100000","ApplyStatus":1,"Results":[]}]}
     */
    getPacsResultByCardNum(cardType: number, cardNum: string, startDate: string, endDate: string) {
        return this.reportresultservice.getPacsResultByCardNum(cardType, cardNum, startDate, endDate);
    }
}
